package com.rc.saas.tenant.service.tenant;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseSearch;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.tenant.TenantRoleMapper;
import com.rc.saas.tenant.model.platform.PlatformRoleExample;
import com.rc.saas.tenant.model.tenant.TenantRole;
import com.rc.saas.tenant.model.tenant.TenantRoleExample;
import com.rc.saas.tenant.model.tenant.TenantUser;
import com.rc.saas.tenant.search.tenant.TenantRoleSearch;
import com.rc.saas.tenant.vo.tenant.TenantUserRoleVo;

/**
 * @author wangzhengwei
 * @create 2021/7/27
 */
public interface TenantRoleService extends BaseService<Long, TenantRole, TenantRoleExample, TenantRoleMapper> {
    PageInfo<TenantRole> listPageTenantRole(TenantRoleSearch tenantRoleSearch);

    void createRole(TenantRole role, TenantUser user);

    void updateRole(TenantRole role);

    TenantUserRoleVo getLonginRole(String loginName);

    TenantRole selectByRoleType(String roleType);
}
